package com.company.project.robot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.project.robot.entity.LanternRiddlesEntity;
import com.company.project.robot.vo.ReptilesVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 
 *
 * @author zyf
 * @email 2102378781@qq.com
 * @date 2021-10-29 17:04:25
 */
public interface LanternRiddlesService extends IService<LanternRiddlesEntity> {

    /**
     * 导出模板
     * @param request
     * @param response
     * @throws IOException
     */
    void exportExcel(HttpServletRequest request, HttpServletResponse response) throws IOException;


    /**
     * 导入
     * @param file
     * @return
     * @throws Exception
     */
    String excelImport(MultipartFile file) throws Exception;


    /**
     * 异步爬虫爬取汉迷网数据
     * @param reptilesVo
     * @return
     * @throws IOException
     */
    void listSave(ReptilesVo reptilesVo) throws IOException;
}

